import { BasicDataEncoder } from '../BasicDataEncoder';
import { Info } from '../GyroscopeControl';

export class TelloDataEncoder extends BasicDataEncoder {
  public encode(data: Info): string {
    return `rc ${(data.x * 50).toFixed()} ${(data.y * 50).toFixed()} 0 ${(data.z * 50).toFixed()}`;
  }
}